Timber\ImageHelper B

Total Complexity 100
Dependencies 10
Dependents 7
Total lines 715
Lines of code 400
Logical lines of code 232
Comment lines 254
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
_operate()
A
43 12 51
analyze_url()
A
45 9 42
find_wp_dimensions()
S
58 7 14
is_svg()
S
53 6 23
_get_file_path()
S
54 6 21
is_animated_gif()
S
55 6 18
is_protocol_allowed()
S
56 6 17
process_delete_generated_files()
S
58 6 14
sideload_image()
S
52 5 24
_get_file_url()
S
55 5 20
resize()
S
60 4 12
is_in_theme_dir()
S
63 3 11
_delete_generated_if_image()
S
68 3 8
delete_generated_files()
S
60 2 13
get_sideloaded_file_loc()
S
60 2 13
theme_url_to_dir()
S
65 2 9
maybe_realpath()
S
70 2 6
get_server_location()
S
65 2 8
get_letterbox_file_url()
S
62 1 11
get_resize_file_url()
S
62 1 11
add_relative_upload_dir_key()
S
74 1 4
generate_attachment_metadata()
S
76 1 4
delete_attachment()
S
80 1 3
img_to_webp()
S
74 1 4
img_to_jpg()
S
74 1 4
letterbox()
S
74 1 4
retina_resize()
S
74 1 4
get_letterbox_file_path()
S
63 1 10
get_resize_file_path()
S
63 1 10
init()
S
67 1 7